package com.qdu.controller;

import com.qdu.entity.Examineinfo;
import com.qdu.service.ExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/examines")
public class ExamineController {

    @Autowired
    private ExamineService examineService;

    @PostMapping("/add")
    public void addExamine(Examineinfo examineinfo){
        examineService.insert(examineinfo);
    }
}
